package mapper;

import classload.MyClassLoad;

import java.util.List;
import java.util.Map;

/**
 * 代表一个应用
 */
public class MyContext {
    /**
     * 应用拥有的servlet
     */
    private List<MyWrapper> myWrappers;

    /**
     * 应用的绝对路劲
     */
    private String contextPath;

    /**
     * 应用对应的类加载器
     */
    private MyClassLoad myClassLoad;

    /**
     * url 和 servlet 的映射关系
     */
    private Map<String,MyWrapper> myWrapperMap;

    public String getContextPath() {
        return contextPath;
    }

    public void setContextPath(String contextPath) {
        this.contextPath = contextPath;
    }

    public MyClassLoad getMyClassLoad() {
        return myClassLoad;
    }

    public void setMyClassLoad(MyClassLoad myClassLoad) {
        this.myClassLoad = myClassLoad;
    }

    public List<MyWrapper> getMyWrappers() {
        return myWrappers;
    }

    public void setMyWrappers(List<MyWrapper> myWrappers) {
        this.myWrappers = myWrappers;
    }

    public Map<String, MyWrapper> getMyWrapperMap() {
        return myWrapperMap;
    }

    public void setMyWrapperMap(Map<String, MyWrapper> myWrapperMap) {
        this.myWrapperMap = myWrapperMap;
    }
}
